package com.sensoro.study.collection;

import java.util.List;
import java.util.Map;
import java.util.Set;

public class CollectionStudy {

    public static void main(String[] args) {

        var set = Set.of("a", "b", "c", "d");
        set.stream().forEach(System.out::println);

        var list = List.of("a", "b", "c", "d");
        list.stream().forEach(System.out::println);

        var map = Map.of(1,"a", 2, "b");

        var map1 = Map.ofEntries(
                Map.entry(1, "a"),
                Map.entry(2, "b"),
                Map.entry(3, "c"),
                Map.entry(4, "d")
        );
    }
}
